﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
/// <summary>
/// UI管理器
/// </summary>
public class UIManager : SingletonProvider<UIManager>
{
    private string mMainCanvasPath = "MainCanvas";
    /// <summary>
    /// 创建ui
    /// </summary>
    /// <param name="callback"></param>
    public void CreateMainCanvas(UnityAction callback)
    {
        PoolManager.GetInstance().GetObject(mMainCanvasPath, (canvas) =>
        {
            callback.Invoke();
        });
    }
}
